package com.kede.api.order.controller;

import com.kede.api.order.service.ICerManageService;
import com.kede.ienum.order.CertiTypeEnum;
import com.kede.pojo.PagePO;
import com.kede.pojo.ResHttp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 认证管理
 * @Author:Pr.li
 * @Date: create in 2023/10/20 17:38
 */
@RestController
@RequestMapping("order/cer")
public class CerController {

    @Resource
    private ICerManageService cerManageService;

    /**
     * 获取认证店下所有的验收订单
     * @param page
     * @param cerId
     * @return
     */
    @GetMapping("getStoreValidOrderFail")
    public ResHttp getStoreValidOrderFail(PagePO page, Integer cerId, CertiTypeEnum type){
        return cerManageService.getStoreValidOrderFail(page,cerId,type);
    }

    /**
     * 获取改认证店下所有的验收运输单统计
     * @param page
     * @param cerId
     * @return
     */
    @GetMapping("getStoreValidOrder")
    public ResHttp getStoreValidOrder(PagePO page, Integer cerId , CertiTypeEnum type){
        return cerManageService.getStoreValidOrder(page,cerId,type);
    }
}
